import java.util.Scanner;

public class Demo2 {
    public static void my_Compare2(int a,int b,int c){
        int ret=my_Compare1(a,b);
        if(ret>c){
            System.out.println(ret);
        }else{
            System.out.println(c);
        }
    }
    public static int my_Compare1(int a,int b){
        if(a>b){
            return a;
        }else{
            return b;
        }
    }
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int a= scanner.nextInt();
        int b= scanner.nextInt();
        int c=scanner.nextInt();
        my_Compare1(a,b);
        my_Compare2(a,b,c);
    }
}
